package com.quanyan.club.entity.db;

import com.quanyan.common.utils.Limit;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TbClubTaskGroupExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected int limitStart = 0;

    protected int limitEnd = 0;

    protected Limit limit;

    public TbClubTaskGroupExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimitStart(int limitStart) {
        this.limitStart=limitStart;
    }

    public int getLimitStart() {
        return limitStart;
    }

    public void setLimitEnd(int limitEnd) {
        this.limitEnd=limitEnd;
    }

    public int getLimitEnd() {
        return limitEnd;
    }

    public void setLimit(Limit limit) {
        this.limit=limit;
    }

    public Limit getLimit() {
        return limit;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andGroupNameIsNull() {
            addCriterion("group_name is null");
            return (Criteria) this;
        }

        public Criteria andGroupNameIsNotNull() {
            addCriterion("group_name is not null");
            return (Criteria) this;
        }

        public Criteria andGroupNameEqualTo(String value) {
            addCriterion("group_name =", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotEqualTo(String value) {
            addCriterion("group_name <>", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameGreaterThan(String value) {
            addCriterion("group_name >", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameGreaterThanOrEqualTo(String value) {
            addCriterion("group_name >=", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLessThan(String value) {
            addCriterion("group_name <", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLessThanOrEqualTo(String value) {
            addCriterion("group_name <=", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameLike(String value) {
            addCriterion("group_name like", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotLike(String value) {
            addCriterion("group_name not like", value, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameIn(List<String> values) {
            addCriterion("group_name in", values, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotIn(List<String> values) {
            addCriterion("group_name not in", values, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameBetween(String value1, String value2) {
            addCriterion("group_name between", value1, value2, "groupName");
            return (Criteria) this;
        }

        public Criteria andGroupNameNotBetween(String value1, String value2) {
            addCriterion("group_name not between", value1, value2, "groupName");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartIsNull() {
            addCriterion("club_createTime_start is null");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartIsNotNull() {
            addCriterion("club_createTime_start is not null");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartEqualTo(Date value) {
            addCriterion("club_createTime_start =", value, "clubCreatetimeStart");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartNotEqualTo(Date value) {
            addCriterion("club_createTime_start <>", value, "clubCreatetimeStart");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartGreaterThan(Date value) {
            addCriterion("club_createTime_start >", value, "clubCreatetimeStart");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartGreaterThanOrEqualTo(Date value) {
            addCriterion("club_createTime_start >=", value, "clubCreatetimeStart");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartLessThan(Date value) {
            addCriterion("club_createTime_start <", value, "clubCreatetimeStart");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartLessThanOrEqualTo(Date value) {
            addCriterion("club_createTime_start <=", value, "clubCreatetimeStart");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartIn(List<Date> values) {
            addCriterion("club_createTime_start in", values, "clubCreatetimeStart");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartNotIn(List<Date> values) {
            addCriterion("club_createTime_start not in", values, "clubCreatetimeStart");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartBetween(Date value1, Date value2) {
            addCriterion("club_createTime_start between", value1, value2, "clubCreatetimeStart");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeStartNotBetween(Date value1, Date value2) {
            addCriterion("club_createTime_start not between", value1, value2, "clubCreatetimeStart");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndIsNull() {
            addCriterion("club_createTime_end is null");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndIsNotNull() {
            addCriterion("club_createTime_end is not null");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndEqualTo(Date value) {
            addCriterion("club_createTime_end =", value, "clubCreatetimeEnd");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndNotEqualTo(Date value) {
            addCriterion("club_createTime_end <>", value, "clubCreatetimeEnd");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndGreaterThan(Date value) {
            addCriterion("club_createTime_end >", value, "clubCreatetimeEnd");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndGreaterThanOrEqualTo(Date value) {
            addCriterion("club_createTime_end >=", value, "clubCreatetimeEnd");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndLessThan(Date value) {
            addCriterion("club_createTime_end <", value, "clubCreatetimeEnd");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndLessThanOrEqualTo(Date value) {
            addCriterion("club_createTime_end <=", value, "clubCreatetimeEnd");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndIn(List<Date> values) {
            addCriterion("club_createTime_end in", values, "clubCreatetimeEnd");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndNotIn(List<Date> values) {
            addCriterion("club_createTime_end not in", values, "clubCreatetimeEnd");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndBetween(Date value1, Date value2) {
            addCriterion("club_createTime_end between", value1, value2, "clubCreatetimeEnd");
            return (Criteria) this;
        }

        public Criteria andClubCreatetimeEndNotBetween(Date value1, Date value2) {
            addCriterion("club_createTime_end not between", value1, value2, "clubCreatetimeEnd");
            return (Criteria) this;
        }

        public Criteria andCityIdIsNull() {
            addCriterion("city_id is null");
            return (Criteria) this;
        }

        public Criteria andCityIdIsNotNull() {
            addCriterion("city_id is not null");
            return (Criteria) this;
        }

        public Criteria andCityIdEqualTo(Integer value) {
            addCriterion("city_id =", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdNotEqualTo(Integer value) {
            addCriterion("city_id <>", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdGreaterThan(Integer value) {
            addCriterion("city_id >", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("city_id >=", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdLessThan(Integer value) {
            addCriterion("city_id <", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdLessThanOrEqualTo(Integer value) {
            addCriterion("city_id <=", value, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdIn(List<Integer> values) {
            addCriterion("city_id in", values, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdNotIn(List<Integer> values) {
            addCriterion("city_id not in", values, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdBetween(Integer value1, Integer value2) {
            addCriterion("city_id between", value1, value2, "cityId");
            return (Criteria) this;
        }

        public Criteria andCityIdNotBetween(Integer value1, Integer value2) {
            addCriterion("city_id not between", value1, value2, "cityId");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromIsNull() {
            addCriterion("task_finish_count_from is null");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromIsNotNull() {
            addCriterion("task_finish_count_from is not null");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromEqualTo(Integer value) {
            addCriterion("task_finish_count_from =", value, "taskFinishCountFrom");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromNotEqualTo(Integer value) {
            addCriterion("task_finish_count_from <>", value, "taskFinishCountFrom");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromGreaterThan(Integer value) {
            addCriterion("task_finish_count_from >", value, "taskFinishCountFrom");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromGreaterThanOrEqualTo(Integer value) {
            addCriterion("task_finish_count_from >=", value, "taskFinishCountFrom");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromLessThan(Integer value) {
            addCriterion("task_finish_count_from <", value, "taskFinishCountFrom");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromLessThanOrEqualTo(Integer value) {
            addCriterion("task_finish_count_from <=", value, "taskFinishCountFrom");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromIn(List<Integer> values) {
            addCriterion("task_finish_count_from in", values, "taskFinishCountFrom");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromNotIn(List<Integer> values) {
            addCriterion("task_finish_count_from not in", values, "taskFinishCountFrom");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromBetween(Integer value1, Integer value2) {
            addCriterion("task_finish_count_from between", value1, value2, "taskFinishCountFrom");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountFromNotBetween(Integer value1, Integer value2) {
            addCriterion("task_finish_count_from not between", value1, value2, "taskFinishCountFrom");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToIsNull() {
            addCriterion("task_finish_count_to is null");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToIsNotNull() {
            addCriterion("task_finish_count_to is not null");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToEqualTo(Integer value) {
            addCriterion("task_finish_count_to =", value, "taskFinishCountTo");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToNotEqualTo(Integer value) {
            addCriterion("task_finish_count_to <>", value, "taskFinishCountTo");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToGreaterThan(Integer value) {
            addCriterion("task_finish_count_to >", value, "taskFinishCountTo");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToGreaterThanOrEqualTo(Integer value) {
            addCriterion("task_finish_count_to >=", value, "taskFinishCountTo");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToLessThan(Integer value) {
            addCriterion("task_finish_count_to <", value, "taskFinishCountTo");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToLessThanOrEqualTo(Integer value) {
            addCriterion("task_finish_count_to <=", value, "taskFinishCountTo");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToIn(List<Integer> values) {
            addCriterion("task_finish_count_to in", values, "taskFinishCountTo");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToNotIn(List<Integer> values) {
            addCriterion("task_finish_count_to not in", values, "taskFinishCountTo");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToBetween(Integer value1, Integer value2) {
            addCriterion("task_finish_count_to between", value1, value2, "taskFinishCountTo");
            return (Criteria) this;
        }

        public Criteria andTaskFinishCountToNotBetween(Integer value1, Integer value2) {
            addCriterion("task_finish_count_to not between", value1, value2, "taskFinishCountTo");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartIsNull() {
            addCriterion("latest_activity_endTime_start is null");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartIsNotNull() {
            addCriterion("latest_activity_endTime_start is not null");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartEqualTo(Date value) {
            addCriterion("latest_activity_endTime_start =", value, "latestActivityEndtimeStart");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartNotEqualTo(Date value) {
            addCriterion("latest_activity_endTime_start <>", value, "latestActivityEndtimeStart");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartGreaterThan(Date value) {
            addCriterion("latest_activity_endTime_start >", value, "latestActivityEndtimeStart");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartGreaterThanOrEqualTo(Date value) {
            addCriterion("latest_activity_endTime_start >=", value, "latestActivityEndtimeStart");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartLessThan(Date value) {
            addCriterion("latest_activity_endTime_start <", value, "latestActivityEndtimeStart");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartLessThanOrEqualTo(Date value) {
            addCriterion("latest_activity_endTime_start <=", value, "latestActivityEndtimeStart");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartIn(List<Date> values) {
            addCriterion("latest_activity_endTime_start in", values, "latestActivityEndtimeStart");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartNotIn(List<Date> values) {
            addCriterion("latest_activity_endTime_start not in", values, "latestActivityEndtimeStart");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartBetween(Date value1, Date value2) {
            addCriterion("latest_activity_endTime_start between", value1, value2, "latestActivityEndtimeStart");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeStartNotBetween(Date value1, Date value2) {
            addCriterion("latest_activity_endTime_start not between", value1, value2, "latestActivityEndtimeStart");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndIsNull() {
            addCriterion("latest_activity_endTime_end is null");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndIsNotNull() {
            addCriterion("latest_activity_endTime_end is not null");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndEqualTo(Date value) {
            addCriterion("latest_activity_endTime_end =", value, "latestActivityEndtimeEnd");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndNotEqualTo(Date value) {
            addCriterion("latest_activity_endTime_end <>", value, "latestActivityEndtimeEnd");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndGreaterThan(Date value) {
            addCriterion("latest_activity_endTime_end >", value, "latestActivityEndtimeEnd");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndGreaterThanOrEqualTo(Date value) {
            addCriterion("latest_activity_endTime_end >=", value, "latestActivityEndtimeEnd");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndLessThan(Date value) {
            addCriterion("latest_activity_endTime_end <", value, "latestActivityEndtimeEnd");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndLessThanOrEqualTo(Date value) {
            addCriterion("latest_activity_endTime_end <=", value, "latestActivityEndtimeEnd");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndIn(List<Date> values) {
            addCriterion("latest_activity_endTime_end in", values, "latestActivityEndtimeEnd");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndNotIn(List<Date> values) {
            addCriterion("latest_activity_endTime_end not in", values, "latestActivityEndtimeEnd");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndBetween(Date value1, Date value2) {
            addCriterion("latest_activity_endTime_end between", value1, value2, "latestActivityEndtimeEnd");
            return (Criteria) this;
        }

        public Criteria andLatestActivityEndtimeEndNotBetween(Date value1, Date value2) {
            addCriterion("latest_activity_endTime_end not between", value1, value2, "latestActivityEndtimeEnd");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}